<template>
<!--  登录页面-->
       <!--设置dic块的整体高度和背景颜色(渐变)，overflow: hidden 元素多余的内容将被裁剪掉，并且不会显示滚动条-->
  <div style="height: 100vh;background-image: linear-gradient(135deg,rgb(36,0,124),#24007c);overflow: hidden">
    <el-container style="padding: 30px">
      <el-header>
          <el-row>
            <el-col :span="20" >
              <span style="color: aliceblue;font-size: 30px;font-weight: bold">智慧社区管理系统</span>
            </el-col>
          </el-row>
      </el-header>

      <el-main>
        <el-row :gutter="40">
          <!--图片设置-->
          <el-col :span="16" style="border: none;">
            <img src="../../public/imgs/login/ztp.png" style="width: 93%; margin-top: 50px; ">
          </el-col>
          <el-col :span="8">
            <el-card style="margin-top: 80px">
                <h3 style="text-align: center">智慧社区登录平台</h3>
              <el-form label-position="top">
                  <el-form-item label="用户名">
                      <el-input   placeholder="请输入用户名" v-model="user.username"></el-input>
                  </el-form-item>
                <el-form-item label="密码">
                    <el-input placeholder="请输入密码" type="password" v-model="user.password"></el-input>
                </el-form-item>
                <el-form-item>
                  <el-button type="primary" style=" width:100%;" @click="login">
                    登录
                  </el-button>
                </el-form-item>
              </el-form>
                <div style="color: #2b2b2b;text-align: center;font-size: 15px;padding: 10px 0;">
                  <span>使用其他登录方式</span><br/>
                  <span>(体验账号:ovo密码：123456)</span><br/>
                </div>
            </el-card>
          </el-col>

        </el-row>
      </el-main>
    </el-container>
  </div>

</template>

<script setup>


import {ref} from "vue";

const user=ref({username:'',password:''});

const login = () => {
  console.log(user.value);
}




</script>



<style scoped>

</style>